import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { NgZorroAntdModule } from 'ng-zorro-antd';
import { RouterModule } from '@angular/router';
import { FormsModule } from '@angular/forms';
import { SmartSiteComponent } from './smart-site.component';


@NgModule({
  imports: [
    CommonModule,
    NgZorroAntdModule,
    RouterModule,
    FormsModule,
    RouterModule.forChild([
      {
        path: '', component: SmartSiteComponent,
        children: [
          { path: 'person-info', loadChildren: './person-info/person-info.module#PersonInfoModule' }, // 人员名册,
          { path: 'video', loadChildren: './video/video.module#VideoModule' }, // 视频监控
          // tslint:disable-next-line: max-line-length
          { path: 'environmental-monitoring', loadChildren: './environmental-monitoring/environmental-monitoring.module#EnvironmentalMonitoringModule' }, // 环境
          { path: 'attendance', loadChildren: './attendance/attendance.module#AttendanceModule' }, // 考勤
          { path: 'categories', loadChildren: './categories/categories.module#CategoriesModule' }, // 人员分类管理
          // tslint:disable-next-line: max-line-length
          { path: 'equipment-monitoring', loadChildren: './equipment-monitoring/equipment-monitoring.module#EquipmentMonitoringModule' }, // 设备监控
        ]
      }
    ])
  ],
  declarations: [SmartSiteComponent]
})
export class SmartSiteModule { }
